<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>动画</title>
		<style>
			.transitionbox{
				width: 100px;
				height: 100px;
				background-color: red;
				/*横向的拉升效果*/
				transition:height  5s;
				transition: width  5s; 
				
				
			}
			/*鼠标移入div触发动画*/
			.transitionbox:hover{
				width: 300PX;
			    height: 300px;/*拉升宽度为100-300*/
			}
		</style>
	</head>
	<body>
		<h3>动画的拉升效果</h3>
		<h5>transition它有两个参数：拉升方向width,2s动画执行时间</h5>
		<div class="transitionbox"></div>
	</body>
</html>
